<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>1~100求和</title>
	</head>
	<body>
		<script type="text/javascript">
			
            let sum = 0;
            for (var i = 0; i < =100; i++) {
            	sum += i;
            }
            console.dir(sum);
		</script>
	</body>
</html>
